<?php
     include_once './common.php';
     $uid = $_GET['uid'];
     $pid = $_GET['pid'];
     $num = $_GET['num'];
     $sql = "INSERT INTO shoppingcart(uid,pid,num) values ('$uid','$pid','$num')";
     $res =  mysqli_query($link,$sql);
    //  $one = mysqli_fetch_assoc($res);
    echo json_encode($res);
?>